﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Tasks;
using Ninject;

namespace JustinAngel.Neurons.Framework
{
    public class TaskInvoker : ITaskInvoker
    {
        public void OpenWebBrowser(string Url)
        {
            new WebBrowserTask()
                {
                    URL = Url
                }.Show();
        }

        public void SendEmail(string subject, string body)
        {
            new EmailComposeTask()
                {
                    Subject = subject,
                    Body = body
                }.Show();
        }

        public void SendEmail(string toEmailAdress, string subject, string body)
        {
            new EmailComposeTask()
            {
                To = toEmailAdress,
                Subject = subject,
                Body = body
            }.Show();
        }
    }
}
